/**
 * 报表设计公司(2011)
 */
package com.reportgear.designer.action.file;

import java.awt.event.ActionEvent;

import com.reportgear.core.util.ImageUtils;
import com.reportgear.designer.DesignerPane;
import com.reportgear.designer.action.ReportAction;
import com.reportgear.designer.setting.DesignerContext;

/**
 * 保存报表
 * 
 * @version 1.0 2011-3-24
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since ANNCSR 2.0
 */
public class SaveReportAction extends ReportAction {

	public SaveReportAction() {
		setName("保存报表");
		setSmallIcon(ImageUtils.readIcon("/resources/images/file/save.png"));
	}

	public void actionPerformed(ActionEvent e) {
		DesignerPane designer = DesignerContext.INSTANCE.getDesigner();

		designer.saveReport();
	}

}
